6e162747b090b6433d2e1813938d4f28f6926af3,prism/src/main/java/org/apache/falcon/resource/AbstractExtensionManager.java,AbstractExtensionManager,checkIfExtensionIsEnabled,#String#,217

Before Change



    protected static void checkIfExtensionIsEnabled(String extensionName) {
        ExtensionMetaStore metaStore = ExtensionStore.getMetaStore();
        if (!metaStore.getDetail(extensionName).getStatus().equals(ExtensionStatus.ENABLED)) {
            LOG.error("Extension: " + extensionName + " is in disabled state.");
            throw FalconWebException.newAPIException("Extension: " + extensionName + " is in disabled state.",
                    Response.Status.INTERNAL_SERVER_ERROR);

After Change



    protected static void checkIfExtensionIsEnabled(String extensionName) {
        ExtensionMetaStore metaStore = ExtensionStore.getMetaStore();
        ExtensionBean extensionBean = metaStore.getDetail(extensionName);
        if (extensionBean == null) {
            LOG.error("Extension not found: " + extensionName);
            throw FalconWebException.newAPIException("Extension not found:" + extensionName,
                    Response.Status.NOT_FOUND);
        }
        if (!extensionBean.getStatus().equals(ExtensionStatus.ENABLED)) {